package com.music.service.impl;

import com.github.pagehelper.PageInfo;
import com.music.dao.SongListMapper;
import com.music.dao.SongListRelationMapper;
import com.music.entity.SongList;
import com.music.entity.SongListRelation;
import com.music.service.SongListRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
@Transactional
public class SongListRelationServiceImpl implements SongListRelationService {

    @Autowired
    public SongListRelationMapper songListRelationMapper;

    @Override
    public List<SongListRelation> findBySongListId(String songListId) {
        List<SongListRelation> list = new ArrayList<SongListRelation>();
        list = songListRelationMapper.getSongFromSongList(songListId);
        return list;
    }
}
